home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Embed / Sources / Content.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  3.1 KB  |  106 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Content.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CONTENT_H
  13. #define CONTENT_H
  14.  
  15. // ----- FrameWork Includes -----
  16.  
  17. #ifndef FWCONTNG_H
  18. #include "FWContng.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Declarations
  23. //========================================================================================
  24.  
  25. class CEmbedPart;
  26. class CEmbedProxy;
  27.  
  28. //========================================================================================
  29. //    class CEmbedContent
  30. //========================================================================================
  31.  
  32. class CEmbedContent : public FW_CEmbeddingContent
  33. {
  34. //----------------------------------------------------------------------------------------
  35. //    Initialization/Destruction
  36. //
  37.   public:
  38.     FW_DECLARE_AUTO(CEmbedContent)
  39.     
  40.     CEmbedContent(Environment* ev, CEmbedPart* part);
  41.  
  42.     virtual ~CEmbedContent();
  43.  
  44. //----------------------------------------------------------------------------------------
  45. //    Inherited API
  46. //
  47.   public:
  48.     virtual void        Externalize(Environment* ev,
  49.                                      ODStorageUnit* storageUnit,
  50.                                      FW_EStorageKinds storageKind,
  51.                                      FW_CCloneInfo* cloneInfo);
  52.     virtual FW_Boolean    Internalize(Environment* ev,
  53.                                      ODStorageUnit* storageUnit, 
  54.                                      FW_EStorageKinds storageKind,
  55.                                      FW_CCloneInfo* cloneInfo);
  56.  
  57. virtual void        SingleEmbeddedFrameInternalized(Environment* ev,
  58.                                     FW_CEmbeddingFrame* scopeFrame,
  59.                                     ODPart* odEmbeddedPart, 
  60.                                     ODFrame* odEmbeddedFrame,
  61.                                     ODShape* suggestedShape,
  62.                                     ODTypeToken viewType);
  63.  
  64.     virtual FW_MProxy*    IsDataOnlyOneProxy(Environment* ev) const;
  65.  
  66. //----------------------------------------------------------------------------------------
  67. //    New API
  68. //
  69.   public:
  70.     CEmbedProxy*         GetProxy() const;
  71.     void                 SetProxy(CEmbedProxy* proxy);
  72.  
  73. //----------------------------------------------------------------------------------------
  74. //    Data Members
  75. //
  76.   private:
  77.     CEmbedPart*            fEmbedPart;
  78.  
  79.     //--- part content data
  80.     CEmbedProxy*        fProxy;
  81. };
  82.  
  83. //========================================================================================
  84. //    CEmbedContent Inlines
  85. //========================================================================================
  86.  
  87. //----------------------------------------------------------------------------------------
  88. //    CEmbedContent::GetProxy
  89. //----------------------------------------------------------------------------------------
  90.  
  91. inline CEmbedProxy* CEmbedContent::GetProxy() const
  92. {
  93.     return fProxy;
  94. }
  95.  
  96. //----------------------------------------------------------------------------------------
  97. //    CEmbedContent::SetProxy
  98. //----------------------------------------------------------------------------------------
  99.  
  100. inline void CEmbedContent::SetProxy(CEmbedProxy* proxy)
  101. {    
  102.     fProxy = proxy;
  103. }
  104.  
  105. #endif
  106.